<?php
class App_Source_Blogs_Entity extends Mozg_Property_Params
{
	public function GetUserName()
	{
		return $this->GetUser()->GetUserName();
	}

	public function SetUserName($userName)
	{
		$obj = Mozg_Mapper::Get('Users')->GetOne(array('userName' => $userName));
		$this->SetUser($obj);
	}

	public function GetUserId()
	{
		return $this->GetUser()->GetId() ? $this->GetUser()->GetId() : null;
	}
}